package com.app.babygo.obj;

import java.io.Serializable;
import java.util.Date;

public class ChildAchievement implements Serializable {

	private static final long serialVersionUID = 1L;
	
	private String taskid;
	private String childid;
	private Date datetime;
	private String picturepath;
	
	public ChildAchievement() {
		this.taskid = null;
		this.childid = null;
		this.datetime = null;
		this.picturepath = null;
	}
	
	public ChildAchievement(String taskid, String childid, String pic_path) {
		this.taskid = taskid;
		this.childid = childid;
		this.datetime = new Date(); // current datetime
		this.picturepath = pic_path;
	}

	public ChildAchievement(String taskid, String childid, Date date, String pic_path) {
		this.taskid = taskid;
		this.childid = childid;
		this.datetime = date;
		this.picturepath = pic_path;
	}

	public String getTaskid() {
		return taskid;
	}

	public void setTaskid(String taskid) {
		this.taskid = taskid;
	}

	public String getChildid() {
		return childid;
	}

	public void setChildid(String childid) {
		this.childid = childid;
	}

	public Date getAchievementDate() {
		return datetime;
	}

	public void setAchievementDate(Date datetime) {
		this.datetime = datetime;
	}
	
	public String getPicturePath() {
		return picturepath;
	}

	public void setPicturePath(String path) {
		this.picturepath = path;
	}
	
	public String toString() {
		return "ChildAchievement: [taskid: " + taskid + 
			   ", childid: " + childid + 
			   ", datetime: " + datetime.toString() + 
			   ", picture path: " + picturepath + "]";
	}
}
